package com.gutai.admin.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * 描述：优惠券
 * 
 * <pre>
 * HISTORY
 * ****************************************************************************
 *  ID    DATE            PERSON            REASON
 *  1     2018年11月13日         YC           Create
 * ****************************************************************************
 * </pre>
 * 
 * @author YC
 * @version 1.0
 */
@Entity
@Table(name = "nideshop_coupon")
public class Coupon {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    /* 商家红包、用户红包、订单红包、线下红包 */
    private String name;
    private Double typeMoney;
    private Short sendType;
    private Double minCount;
    private Double maxCount;
    private Long sendStartTime;
    private Long sendEndTime;
    private Long useStartTime;
    private Long useEndTime;
    private Double minGoodsAmount;
    /** 创建时间 */
    @Column(updatable = false, insertable = false)
    private Long createTime;

    public Integer getId() {
        return id;
    }


    public void setId(Integer id) {
        this.id = id;
    }


    public String getName() {
        return name;
    }


    public void setName(String name) {
        this.name = name;
    }

    public Double getTypeMoney() {
        return typeMoney;
    }

    public void setTypeMoney(Double typeMoney) {
        this.typeMoney = typeMoney;
    }


    public Short getSendType() {
        return sendType;
    }


    public void setSendType(Short sendType) {
        this.sendType = sendType;
    }

    public Double getMinCount() {
        return minCount;
    }

    public void setMinCount(Double minCount) {
        this.minCount = minCount;
    }

    public Double getMaxCount() {
        return maxCount;
    }

    public void setMaxCount(Double maxCount) {
        this.maxCount = maxCount;
    }


    public Long getSendStartTime() {
        return sendStartTime;
    }


    public void setSendStartTime(Long sendStartTime) {
        this.sendStartTime = sendStartTime;
    }


    public Long getSendEndTime() {
        return sendEndTime;
    }


    public void setSendEndTime(Long sendEndTime) {
        this.sendEndTime = sendEndTime;
    }


    public Long getUseStartTime() {
        return useStartTime;
    }


    public void setUseStartTime(Long useStartTime) {
        this.useStartTime = useStartTime;
    }


    public Long getUseEndTime() {
        return useEndTime;
    }


    public void setUseEndTime(Long useEndTime) {
        this.useEndTime = useEndTime;
    }

    public Double getMinGoodsAmount() {
        return minGoodsAmount;
    }

    public void setMinGoodsAmount(Double minGoodsAmount) {
        this.minGoodsAmount = minGoodsAmount;
    }


    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Coupon [id=" + id + ", name=" + name + ", typeMoney=" + typeMoney + ", sendType="
                + sendType + ", minCount=" + minCount + ", maxCount=" + maxCount
                + ", sendStartTime=" + sendStartTime + ", sendEndTime=" + sendEndTime
                + ", useStartTime=" + useStartTime + ", useEndTime=" + useEndTime
                + ", minGoodsAmount=" + minGoodsAmount + "]";
    }

}
